package com.kaifamiao.jdbc.helper.test;

import java.time.LocalDate;

public class Employee {

    private Integer id;
    private String name;
    private LocalDate hiredate;
    private String job;
    private Float salary;

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append( "{" );
        builder.append( "\"id\": " + id );
        builder.append( ", \"name\": \"" + name + "\"" );
        builder.append( ", \"hiredate\": \"" + hiredate.toString() + "\"" );
        builder.append( "}" );
        return builder.toString();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getHiredate() {
        return hiredate;
    }

    public void setHiredate(LocalDate hiredate) {
        this.hiredate = hiredate;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Float getSalary() {
        return salary;
    }

    public void setSalary(Float salary) {
        this.salary = salary;
    }
}
